import request from '@/utils/request'

//.................... 综合看版页面.....................

// /getWorkOrderList/analyse  当前工单完成情况 
export function WorkOrderListdone() {
  return request({
    url: 'data/show/getWorkOrderList/analyse',
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}
// /getWorkorderList  正在进行的工单 
export function WorkorderListing() {
  return request({
    url: 'data/show/getWorkOrderList',
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}



//工单达成率 接口：/data/show/getWorkshopFinishingRate
export function getWorkshopFinishingRate() {
  return request({
    url: 'data/show/getWorkshopFinishingRate',
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}

//正在进行的工单 接口：/data/show/getWorkshopConduct
export function getWorkshopConduct() {
  return request({
    url: 'data/show/getWorkshopConduct',
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}

//本月能效走势接口：/data/show/getWorkshopMonthList
export function getWorkshopMonthList() {
  return request({
    url: 'data/show/getWorkshopMonthList',
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}

//设备产能情况   /data/show/getEquipmentNumberList
export function getEquipmentNumberList(workShopId,dateType) {
  return request({
    url: 'data/show/getEquipmentNumberList?workShopId='+workShopId+'&dateType='+dateType,
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}

//.................... 设备分析页面.....................

// /getEquipmentForesee  设备预见性分析API
export function getEquipmentForesee() {
  return request({
    url: 'data/show/getEquipmentForesee',
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}

// 设备利用率走势 接口：/data/show/getEquipmentAnalyseMonth
export function getEquipmentAnalyseMonth() {
  return request({
    url: 'data/show/getEquipmentAnalyseMonth',
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}

// 设备利用率监测接口：/data/show/getEquipmentAnalyseDay/{dateType}
// dateType：日周月类型 1：日。2：周。3：月
export function getEquipmentAnalyseDay(dateType) {
  return request({
    url: 'data/show/getEquipmentAnalyseDay/'+dateType,
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}

// 设备状态监测接口：/data/show/getEquipmentAnalyseAlone/{dateType}
// dateType：日周月类型 1：日。2：周。3：月
export function getEquipmentAnalyseAlone(dateType) {
  return request({
    url: 'data/show/getEquipmentAnalyseAlone/'+dateType,
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}